package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nengchuan.kbms.common.XmlPageDTO;
import com.nengchuan.kbms.dfs.annotation.Relation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * <p>
 * 分享给我 PageDTO
 * </p>
 *
 * @author abe
 * @since 2020-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DataReceivePageDTO 对象", description = "分享给我查询条件")
@ToString
public class DataReceivePageDTO extends XmlPageDTO {

    @ApiModelProperty(value = "文件类型（d：文件；f文件夹）", position = 10)
    @Relation(value = Relation.Bind.EQ, field = "s.biz_type")
    private String bizType;

    @ApiModelProperty(value = "文件（夹）名称", position = 20)
    private String name;

    @ApiModelProperty(value = "分享日期（开始", position = 40)
    @Relation(value = Relation.Bind.GE, field = "s.create_time")
    private Long createTimeBegin;

    @ApiModelProperty(value = "分享日期（结束", position = 50)
    @Relation(value = Relation.Bind.LE, field = "s.create_time")
    private Long createTimeEnd;

    @ApiModelProperty(value = "接收人id", hidden = true)
    @JsonIgnore
    private Long receiveUserId;

}
